package group.rober.pagelet.autoconfigure;

import group.rober.runtime.kit.ListKit;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

@ConfigurationProperties(prefix = "group.rober.pagelet", ignoreUnknownFields = true)
public class PageletProperties {
    private String viewPath = "/views";
    private String numberFormat = "#";
//    private List<String> autoIncludes = ListKit.listOf("/base/macro/body.ftl","/base/macro/pagelet.ftl");
    private List<String> autoIncludes = new ArrayList<>();

    public String getViewPath() {
        return viewPath;
    }

    public void setViewPath(String viewPath) {
        this.viewPath = viewPath;
    }

    public String getNumberFormat() {
        return numberFormat;
    }

    public void setNumberFormat(String numberFormat) {
        this.numberFormat = numberFormat;
    }

    public List<String> getAutoIncludes() {
        return autoIncludes;
    }

    public void setAutoIncludes(List<String> autoIncludes) {
        this.autoIncludes = autoIncludes;
    }
}
